package com.itlzh.mall.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itlzh.mall.common.entity.UserLoginLog;
import com.itlzh.mall.user.model.UserLoginLogQuery;

import java.util.List;

public interface IUserLoginLogService extends IService<UserLoginLog> {
    void writeLoginLog(Long userId);

    /**
     * 按条件查询
     * @param query
     * @return
     */
    List<UserLoginLog> list(UserLoginLogQuery query);

    /**
     * 分页查询
     * @param query
     * @param page
     * @return
     */
    IPage<UserLoginLog> page(UserLoginLogQuery query, Page page);

}
